package com.mycode.flyweight12.resolve;

// 围棋棋子类：抽象享元类
public abstract class IgoChessman {

    public abstract String getColor();

    public void display() {
        System.out.println("棋子颜色：" + this.getColor());
    }

    public void display(Coordinates coordinates) {
        System.out.println("棋子颜色：" + this.getColor() + ", 棋子位置：" + coordinates.getX() + "," + coordinates.getY());
    }

}
